Move the -gtk-icon-palette property up
authorMatthias Clasen <mclasen@redhat.com>
Wed, 13 Jan 2016 21:16:39 +0000 (16:16 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 Jan 2016 21:16:39 +0000 (16:16 -0500)
Other properties will start depending on it in subsequent
commits, so move it up to prevent ordering problems.

gtk/gtkcssstylepropertyimpl.c
gtk/gtkcsstypesprivate.h

index fa86507aaad9591f0f9f75de53b2b2c8a514ebbe..8cb51dda49c03f4e762cfb1c40d023164c951173 100644 (file)
@@ -1052,6 +1052,16 @@ _gtk_css_style_property_init_properties (void)
                                           NULL,
                                           NULL,
                                           gtk_css_icon_theme_value_new (NULL));
+  gtk_css_style_property_register        ("-gtk-icon-palette",
+                                         GTK_CSS_PROPERTY_ICON_PALETTE,
+                                         G_TYPE_NONE,
+                                         GTK_STYLE_PROPERTY_ANIMATED | GTK_STYLE_PROPERTY_INHERIT,
+                                          GTK_CSS_AFFECTS_ICON,
+                                         icon_palette_parse,
+                                         NULL,
+                                         NULL,
+                                         gtk_css_palette_value_new_default ());
+
 
   /* properties that aren't referenced when computing values
    * start here */
@@ -1767,16 +1777,6 @@ _gtk_css_style_property_init_properties (void)
                                          NULL,
                                          NULL,
                                          _gtk_css_icon_effect_value_new (GTK_CSS_ICON_EFFECT_NONE));
-  gtk_css_style_property_register        ("-gtk-icon-palette",
-                                         GTK_CSS_PROPERTY_ICON_PALETTE,
-                                         G_TYPE_NONE,
-                                         GTK_STYLE_PROPERTY_ANIMATED | GTK_STYLE_PROPERTY_INHERIT,
-                                          GTK_CSS_AFFECTS_ICON,
-                                         icon_palette_parse,
-                                         NULL,
-                                         NULL,
-                                         gtk_css_palette_value_new_default ());
-
 
 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_css_style_property_register        ("engine",
index 082b3f6674a9a6c1c82c297bb05e667b174ec5f1..414395743eef013a7b1129a5407afe08b1e28e40 100644 (file)
@@ -145,6 +145,7 @@ enum { /*< skip >*/
   GTK_CSS_PROPERTY_DPI,
   GTK_CSS_PROPERTY_FONT_SIZE,
   GTK_CSS_PROPERTY_ICON_THEME,
+  GTK_CSS_PROPERTY_ICON_PALETTE,
   GTK_CSS_PROPERTY_BACKGROUND_COLOR,
   GTK_CSS_PROPERTY_FONT_FAMILY,
   GTK_CSS_PROPERTY_FONT_STYLE,
@@ -219,7 +220,6 @@ enum { /*< skip >*/
   GTK_CSS_PROPERTY_ANIMATION_FILL_MODE,
   GTK_CSS_PROPERTY_OPACITY,
   GTK_CSS_PROPERTY_ICON_EFFECT,
-  GTK_CSS_PROPERTY_ICON_PALETTE,
   GTK_CSS_PROPERTY_ENGINE,
   GTK_CSS_PROPERTY_GTK_KEY_BINDINGS,
   GTK_CSS_PROPERTY_CARET_COLOR,